package com.shop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.pojo.Items;
import com.shop.pojo.ItemsImg;
import com.shop.pojo.ItemsParam;
import com.shop.pojo.ItemsSpec;
import com.shop.pojo.vo.CommentLevelCountVo;
import com.shop.pojo.vo.ItemCommentVo;
import com.shop.pojo.vo.SearchItemVo;
import com.shop.pojo.vo.ShopCartVo;

import java.util.List;

/**
 * <p>
 * 商品表 商品信息相关表：分类表，商品图片表，商品规格表，商品参数表 服务类
 * </p>
 *
 * @author Administrator
 * @since 2020-10-31
 */
public interface ItemsService extends IService<Items> {

    public Items queryItemById(String itemId);

    public List<ItemsImg> queryItemImgList(String itemId);

    public List<ItemsSpec> queryItemSpecList(String itemId);

    public ItemsParam queryItemParam(String itemId);

    public CommentLevelCountVo queryCommentCounts(String itemId);

    public IPage<ItemCommentVo> queryPageComment(String itemId, Integer level, Page page);

    public IPage<SearchItemVo> searchItems(String keywords, String sort, Page page);

    public IPage<SearchItemVo> searchItemByThirdCat(String keywords, String sort, Page page);

    public List<ShopCartVo> queryItemsBySpecIds(String ids);

}
